package com.prp.gwt.client.user.friend;

import java.util.Set;

import com.google.gwt.user.client.rpc.AsyncCallback;
import com.prp.gwt.client.vo.UserList;

public interface FriendServiceAsync {
	public void getFriendList(int id, AsyncCallback<UserList> callback);
	public void isNeighbour(int id1, int id2, AsyncCallback<Boolean> callback);
	public void breakup(int id1, int id2, AsyncCallback<Void> callback);
	public void invite(int toId, AsyncCallback<Boolean> callback);
	public void findInvite(AsyncCallback<UserList> callback);
	public void buildup(int id, AsyncCallback<Boolean> callback);
	public void cancelInvite(int fromId, AsyncCallback<Void> callback);
	public void searchUser(String userName, AsyncCallback<UserList> callback);
	public void recommend(Set<Integer> fromIds,
			Set<Integer> toIds, AsyncCallback<Void> callback);
	public void deleteRecommend(int id, AsyncCallback<Void> callback);
	public void getRecommendList(AsyncCallback<UserList> callback);
}
